package com.mentaleye.dal.dao.mybatis;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mentaleye.dal.dao.StudentPropertyReturnRecordDao;
import com.mentaleye.dal.model.StudentPropertyReturnRecord;
import com.mentaleye.dal.model.StudentPropertyReturnRecordExample;
import com.mentaleye.dal.service.StudentPropertyReturnRecordMapper;

@Repository
public class StudentPropertyReturnRecordDaoImpl implements StudentPropertyReturnRecordDao {

	@Autowired StudentPropertyReturnRecordMapper recordMapper;
	
	@Override
	public boolean insertRecord(StudentPropertyReturnRecord record) {
		boolean isSuccess=false;
		if(this.recordMapper.insert(record)>0){
			isSuccess=true;
		}
		return isSuccess;
	}

	@Override
	public boolean updateRecord(StudentPropertyReturnRecord record) {
		boolean isSuccess=false;
		if(this.recordMapper.updateByPrimaryKey(record)>0){
			isSuccess=true;
		}
		return isSuccess;
	}

	@Override
	public boolean deleteByExample(StudentPropertyReturnRecordExample example) {
		boolean isSuccess=false;
		if(this.recordMapper.deleteByExample(example)>0){
			isSuccess=true;
		}
		return isSuccess;
	}

	@Override
	public List<StudentPropertyReturnRecord> getListByExample(StudentPropertyReturnRecordExample example) {
		return this.getListByExample(example);
	}

	@Override
	public List<Map<String, Object>> getListByMap(Map<String, Object> map) {
		return this.recordMapper.getListByMap(map);
	}

}
